﻿using System.Windows.Controls;

namespace FR.SAFTAnalyser.Views
{
    /// <summary>
    /// Interaction logic for StocksProdutsView.xaml
    /// </summary>
    public partial class StocksProdutsView : UserControl
    {
        public StocksProdutsView()
        {
            InitializeComponent();
        }

        private void dataGridProducts_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (dataGridProducts.SelectedItem != null)
                dataGridProducts.ScrollIntoView(dataGridProducts.SelectedItem);
        }
    }
}
